package com.zhuifeng.product.domain;

import com.zhuifeng.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuifeng.common.core.annotation.Excel;

/**
 * 商品sku对象 product_sku
 *
 * @author zhuifeng
 * @date 2022-08-19
 */
public class ProductSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格主键 */
    @Excel(name = "规格主键")
    private String productSkuId;

    /** 商品Id */
    @Excel(name = "商品Id")
    private String productId;

    /** 规格描述 */
    @Excel(name = "规格描述")
    private String productSkuDescriber;

    /** sku图片 */
    @Excel(name = "sku图片")
    private String productSkuImg;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal productSkuPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Integer productSkuStock;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 锁定库存 */
    @Excel(name = "锁定库存")
    private Integer lockInventory;


    public Integer getLockInventory() {
        return lockInventory;
    }

    public void setLockInventory(Integer lockInventory) {
        this.lockInventory = lockInventory;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer revision;

    public void setProductSkuId(String productSkuId)
    {
        this.productSkuId = productSkuId;
    }

    public String getProductSkuId()
    {
        return productSkuId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setProductSkuDescriber(String productSkuDescriber)
    {
        this.productSkuDescriber = productSkuDescriber;
    }

    public String getProductSkuDescriber()
    {
        return productSkuDescriber;
    }
    public void setProductSkuImg(String productSkuImg)
    {
        this.productSkuImg = productSkuImg;
    }

    public String getProductSkuImg()
    {
        return productSkuImg;
    }
    public void setProductSkuPrice(BigDecimal productSkuPrice)
    {
        this.productSkuPrice = productSkuPrice;
    }

    public BigDecimal getProductSkuPrice()
    {
        return productSkuPrice;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getProductSkuStock() {
        return productSkuStock;
    }

    public void setProductSkuStock(Integer productSkuStock) {
        this.productSkuStock = productSkuStock;
    }

    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }
    public void setRevision(Integer revision)
    {
        this.revision = revision;
    }

    public Integer getRevision()
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productSkuId", getProductSkuId())
                .append("productId", getProductId())
                .append("productSkuDescriber", getProductSkuDescriber())
                .append("productSkuImg", getProductSkuImg())
                .append("productSkuPrice", getProductSkuPrice())
                .append("productSkuStock", getProductSkuStock())
                .append("isDelete", getIsDelete())
                .append("revision", getRevision())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
